<div class="image-part">
  <div class="ad-image"><%=image_tag "../attachments/"+@firstimage.id.to_s+"/"+@firstimage.filename,:width=>"510px",:height=>"345px",:align=>"left", :border=>"0px" -%></div>
  <div class="image-title" align="center">
    <br><b>Image Title</b>
  </div>

  <div class="enlarge-image-icons">
    <ul>
      <% @images.each do |image|-%>
        <li>
          <%= link_to_remote image_tag("../attachments/"+image.id.to_s+"/"+image.filename, :border=>"0px", :width=> "76px", :height=>"52px"), :url => {:controller=>"view_advertisment",:action => "fullimage",:id => @advertisment,:imageid=>image.id}, :update => "details" -%>
        </li>
      <%end -%>
    </ul>
  </div>
</div>